import { request } from "@/utils/request";

// 获取所有订单
export const GetOrderAllDataAPI = (id) => request.get(`/api/user/orderListController?status=${id}`,)

// 通过订单id查询订单
export const GetOrderByidAPI = (id) => request.get(`/api/user/FindOrderById?id=${id}`)

// 支付接口
export const GetOrderPayAPI = (data) => request.post('/api/user/payOrderController', data)

// 取消订单
export const GetCancelOrderAPI = (data) => request.get(`/api/user/payOrderController?id=${data.id}&message=${data.message}`)

// 收货接口
export const GetFinishOrderAPI = (id) => request.get(`/api/user/receivingController?orderId=${id}`)